package com.maochang.reggie.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maochang.reggie.dto.SetmealDto;
import com.maochang.reggie.pojo.Setmeal;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface SetmealMapper extends BaseMapper<Setmeal> {
    @Insert("insert into setmeal values(null,#{categoryId},#{name},#{price},#{status},#{code},#{description},#{image},#{createTime},#{updateTime},#{createUser},#{updateUser},0)")
    @Options(useGeneratedKeys = true,keyColumn = "id",keyProperty = "id")
    void save(SetmealDto setmealDto);
}
